<link href="__PUBLIC__/Theme/Admin/Dwz/js/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>
<script src="__PUBLIC__/Theme/Admin/Dwz/js/uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="__PUBLIC__/Theme/Admin/Dwz/js/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>
<div class="page">
	<div class="pageContent">
	<form method="post" action="__URL__/insert/navTabId/__MODULE__" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="level" value="{$level}">
		<input type="hidden" name="pid" value="{$pid}">
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>操作名(英文)：</label>
				<input type="text" class="required alphanumeric"    name="name">
			</div>
			
			<div class="unit">
				<label>显示名：</label>
				<input type="text" class="required"   name="title">
			</div>
			<div class="unit">
				<label>所属模块：</label>
				<SELECT name="pid">
					<option value="">后台管理</option>
					<volist name="list" id="vo">
						<option value="{$vo.id}">{$vo.title}</option>
					</volist>
				</SELECT>
			</div>
			<div class="unit">
				<label>状态：</label>
				<SELECT name="status">
					<option value="1">启用</option>
					<option value="0">禁用</option>
				</SELECT>
			</div>
			<div class="unit">
				<label>序号：</label>
				<input type="text" name="sort" class="email">
			</div>
			<div class="unit">
				<label>描 述：</label>
				<TEXTAREA name="remark"  rows="3" cols="57"></textarea>
			</div>
			<div class="unit">	
				<input id="testFileInput" type="file" name="image" 
					   uploader="__PUBLIC__/Theme/Admin/Dwz/js/uploadify/scripts/uploadify.swf"
					   cancelImg="__PUBLIC__/Theme/Admin/Dwz/js/uploadify/cancel.png" 					
					   script="ajaxDone.html" 					
					   scriptData="{PHPSESSID:'xxx', ajax:1}"					
					   folder="{$WEB_FILE}/folder"					
					   fileQueue="fileQueue"/>
					   <div id="fileQueue" class="fileQueue" style="border:none;border:0px;"></div>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	</div>
</div>
<script>
function uploadifyAllComplete(event, data){
    alert("aa");
    if (data.errors) {
          var msg = "The total number of files uploaded: "+data.filesUploaded+"\n"
                + "The total number of errors while uploading: "+data.errors+"\n"
                + "The total number of bytes uploaded: "+data.allBytesLoaded+"\n"
                + "The average speed of all uploaded files: "+data.speed;
                alert("event:" + event + "\n" + msg);

    }

}


</script>

